package com.yk.anima.api;


import com.yk.anima.pojo.Admin;
import com.yk.anima.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

/**
 * @author xiaokai
 * @create 2021-05-13 08:45:16
 * @desc...登录接口
 */

@Api(value = "用户登录",description = "用户登录管理接口")
public interface AdminApi {

    @ApiOperation("登录接口")
    public Admin login(@ApiParam("用户名") String userName,@ApiParam("用户密码") String passWord,@ApiParam("验证码") String validateCode);

    @ApiOperation("退出接口")
    public ResponseResult exit(int id);

    @ApiOperation("注册接口")
    public ResponseResult registration(Admin admin);

    @ApiOperation("生成6位数验证码")
    public String verification();
}
